home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5009 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  53 lines

  1. Newsgroups: comp.lang.c
  2. Path: news.net99.net!zeus!news
  3. From: walker@mail.argo.net (robert walker)
  4. Subject: Help, gcc  -> undefined reference to '_XmStrings'
  5. Message-ID: <DMKFI8.8Lr@argo.net>
  6. Sender: news@argo.net
  7. Nntp-Posting-Host: aegis10.argo.net
  8. Reply-To: walker@argo.net
  9. Organization: GTE
  10. X-Newsreader: WinVN 0.99.4
  11. Mime-Version: 1.0
  12. Date: Sat, 10 Feb 1996 15:10:56 GMT
  13.  
  14. Hello any developers,
  15.  
  16. I have the InfoMagic version of Motif, and I'm compiling with
  17. gcc 2.7.0.  
  18. (this is on linux, which seems to be behaving fine running mwm and 
  19. applications)
  20.  
  21. When I compile w/
  22.  
  23. gcc xmdemo.c -I/usr/X11R6/include -lXm -lXt -lXmu -lX11
  24.  
  25. I get these bewildering errors
  26.  
  27. /tmp/cca004061.o(.text+0x2f):undefined reference to '_XmStrings'
  28. /tmp/cca004061.o(.text+0x2f):undefined reference to 
  29. 'XmStringCreate'
  30. ..
  31. ..
  32. Xm is the motif lib and so is Xmu
  33.  
  34. I get these errors for all Motif functions I try to call from the source 
  35. file
  36.  
  37. But the Xt and X libs are found
  38.  
  39. my #includes look like this
  40.  
  41. #include <Xm/Xm.h>
  42. ..
  43. ..
  44.  
  45.  
  46. Please help if you know a solution
  47.  
  48. Thanks
  49.  
  50. walker@argo.net
  51.  
  52.  
  53.